using System;
using Gtk;

namespace TracNghiem2
{
	public partial class fas : Gtk.Window
	{
		public fas (int wrong, int right, int score) : 
				base(Gtk.WindowType.Toplevel)
		{
			this.Build ();
			label1.Text = "Wrong Answer";
			label20.Text = wrong.ToString ();
			label21.Text = "Right Answer";
			label22.Text = right.ToString ();
			label23.Text = "Score";

			drawingarea1.SetSizeRequest(250, 30);
			drawingarea1.ExposeEvent += Expose_Event;
			layout = new Pango.Layout(drawingarea1.PangoContext);
			layout.Wrap = Pango.WrapMode.Word;
			layout.FontDescription = Pango.FontDescription.FromString("Ahafoni CLM Bold 20");
			layout.SetMarkup ("<span color=" + (char)34 + "blue" + (char)34 + ">" + score.ToString() + "</span>");
		}

		Pango.Layout layout;

		void Expose_Event (object obj, ExposeEventArgs args)
		{
			drawingarea1.GdkWindow.DrawLayout (drawingarea1.Style.TextGC (StateType.Normal), 5, 5, layout);
		}

	}
}

